/**题目
 * https://ac.nowcoder.com/acm/contest/12949/B
 */
import java.util.Scanner;

public class main2 {
    public static void main(String[] args) {
        Scanner ss = new Scanner(System.in);
        int t = ss.nextInt();
        long[] data = new long[t];
        for(int i=0;i<t;i++){
            data[i] = ss.nextLong();
        }
        for(int i=0;i<t;i++){
            long day=1;
            day=cut(data[i],day);
            System.out.println(day);
        }

    }

    static long cut(long n, long day) {
        if(n==1) return day;
        long n1 = n/2;
        long n2 = n-n/2;
        day = cut(Math.max(n1,n2),day+1);
        return day;
    }

}
